package com.ruoyi.iot.domain.mqtt.constants;

/**
 * mqtt请求URL
 * @Author: 陈江灿
 * @CreateTime: 2025-02-09
 */
public class MqttApiConstants {

    /**
     * 获取所有MQTT客户端列表的URL模板
     */
    public static final String GET_ALL_MQTT_CLIENTS_URL = "%s/api/v5/clients?page=%s&limit=%s&fields=clientid,username,connected,ip_address,port,keepalive,clean_start,connected_at,node,disconnected_at,created_at";

    /**
     * 获取单个MQTT客户端状态信息的URL模板
     */
    public static final String GET_MQTT_CLIENT_STATUS_URL = "%s/api/v5/clients?clientid=%s&fields=clientid,username,connected,ip_address,port,keepalive,clean_start,connected_at,node,disconnected_at,created_at";

    /**
     * 查询当前节点信息
     */
    public static final String GET_ALL_MQTT_NODE_INFO_URL = "%s/api/v5/nodes";
    /**
     * 查询订阅信息
     */
    public static final String GET_MONITOR_CURRENT_URL = "%s/api/v5/monitor_current";

    public static final String GET_CLIENTS_URL = "/api/v5/clients/";

}
